/**
 * 
 */
package decorator;

import junit.framework.TestCase;

/**
 * @author sz
 *
 * create time：2012-5-24
 */
public class testMain extends TestCase{
	
	public void testDecorator(){
		
	
	}
	
	public static void main(String[] args){
	ConcreteComponent c = new ConcreteComponent();
		
		ConcreteDecoratorA d1 = new ConcreteDecoratorA();
		
		ConcreteDecoratorB d2 = new ConcreteDecoratorB();
		
		d1.setComponent(c);
		
		d2.setComponent(d1);
				
		d2.Operation();
	}
}
